package com.qxzn.module.im.interfaces;

import com.qxzn.app.bean.BaseBean;
import com.qxzn.app.bean.LeaveVoiceMsgBean;
import com.qxzn.app.bean.MsgBean;
import com.qxzn.app.bean.SendMsgSuccessBean;

public class MsgInterface {

    public interface OnSendMsgListener {
        void onSuccess(long id, BaseBean<SendMsgSuccessBean> data);

        void onFailure(long id);
    }

    public interface OnGetMsgListListener {
        void onSuccess(BaseBean<MsgBean> data);

        void onFailure();
    }

    public interface OnGetMsgListener {
        void onSuccess(BaseBean<MsgBean.ResultBean> data);

//        void onFailure();
    }

    public interface OnGetUnreadLeaveMsgListListener {
        void onGetUnreadLeaveMsgListSuccess(BaseBean<LeaveVoiceMsgBean> data);

        void onGetUnreadLeaveMsgListFailure();
    }

    public interface OnUpdateUnreadLeaveMsgListListener {
        void onUpdateUnreadLeaveMsgListSuccess(BaseBean data);

        void onUpdateUnreadLeaveMsgListFailure();
    }

}
